package org.jeecg.modules.golf.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 学员
 * @Author: jeecg-boot
 * @Date:   2020-11-01
 * @Version: V1.0
 */
@Data
@TableName("trainee")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="trainee对象", description="学员")
public class Trainee implements Serializable {

    public static final String DEFAULT_PASSWORD = "123456jgs";
    /**
     * 部门
     */
    public static final String TRAINEE_DEPART = "6d35e179cd814e3299bd588ea7daed3f";
    /**
     * 角色
     */
    public static final String TRAINEE_ROLE = "1310705492953772034";
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @TableField(fill =  FieldFill.INSERT)
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    @TableField(fill =  FieldFill.INSERT_UPDATE)
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    @TableField(fill =  FieldFill.INSERT_UPDATE)
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**伤病史*/
	@Excel(name = "伤病史", width = 15, dicCode = "INJURIES_OF_HISTORY")
	@Dict(dicCode = "INJURIES_OF_HISTORY")
    @ApiModelProperty(value = "伤病史")
    private String injuriesOfHistory;
	/**爱好*/
	@Excel(name = "爱好", width = 15, dicCode = "HOBBY")
	@Dict(dicCode = "HOBBY")
    @ApiModelProperty(value = "爱好")
    private String hobby;
	/**学历*/
	@Excel(name = "学历", width = 15, dicCode = "QUALIFICATION")
	@Dict(dicCode = "QUALIFICATION")
    @ApiModelProperty(value = "学历")
    private String qualification;
	/**年龄*/
	@Excel(name = "年龄", width = 15)
    @ApiModelProperty(value = "年龄")
    private Integer age;

    /**
     * 球龄
      */
    @Excel(name = "球龄", width = 16)
    @ApiModelProperty(value = "球龄")
    private Integer yearsPro;


    /**用户id*/
    @Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String userId;


    /**差点*/
    @Excel(name = "chadian", width = 15)
    @ApiModelProperty(value = "差点")
    private Integer chadian;

}
